package com.emm.yixun.openapi.hander;

import net.sf.ehcache.CacheManager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.QueryAgentInfoReqDto;
import com.emm.yixun.common.app.QueryAgentInfoResDto;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.vo.QueryAgentInfoReqVo;
import com.emm.yixun.customer.service.app.CustomerServiceAppFacade;

/**
 * 基本信息类接口（绿城扩展）
 * 
 * （2）经纪人信息全量查询接口接口(queryAgentInfo)
 * @author Administrator
 *
 */
@Service("queryAgentInfoHander")
public class QueryAgentInfoHander extends com.emm.yixun.openapi.hander.base.CommonAbstractHander{
	
	@Autowired
	private CustomerServiceAppFacade customerServiceAppFacade;
	
	@Autowired
	private CacheManager cacheManager;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		QueryAgentInfoReqVo req = (QueryAgentInfoReqVo)reqDto;
		QueryAgentInfoReqDto reqDto1 = req.getParams();
		BaseResponseDTO<QueryAgentInfoResDto> res = new BaseResponseDTO<QueryAgentInfoResDto>();
		res.setResData(customerServiceAppFacade.queryAgentInfo(reqDto1));
		return res;
	}
	
}
